layout (location = 0) out vec4 eceGlPosition;
layout (location = 1) out vec4 eceGlNormal;
layout (location = 2) out vec4 eceGlAlbedoSpec;
layout (location = 3) out vec4 eceGlGameData;

uniform samplerCube texture;
varying vec3 vTexCoord;
varying vec3 vPosition;
varying float vDistance;
void main() {
	vec4 baseColor = textureCube(texture, vTexCoord);
	eceGlPosition.rgb = vPosition;
	eceGlPosition.a = vDistance;
	eceGlAlbedoSpec.rgb = baseColor.rgb;
	eceGlAlbedoSpec.a = -1;
	eceGlGameData.r = 0;
}